﻿<UserControl 
    x:Class="HolisticWare.VoIP.Getafisk.EXE_01PL_05netfx30.SL30.any_any_any.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
>
    <StackPanel Background="White" Width="Auto" >
        <StackPanel>
            <!--
            <ContentControl Content="Navigation" />
            <TextBlock  Margin="4">
                Try clicking the navigation buttons below, then use the browser's back and forward buttons to change the page.
            </TextBlock>
            <ContentControl Content="Links"  />
            -->
            <StackPanel Orientation="Horizontal">
                <HyperlinkButton Content="Main" Margin="4" TargetName="navFrame" 
                                 NavigateUri="/MainPage.xaml" />
                <HyperlinkButton Content="Extensions" Margin="4" TargetName="navFrame" 
                                 NavigateUri="/Pages/PageExtensions.xaml" />
                <HyperlinkButton Content="Trunks" Margin="4" TargetName="navFrame" NavigateUri="/Pages/PageTrunks.xaml" />
                <HyperlinkButton Content="Routes Inbound" Margin="4" TargetName="navFrame" NavigateUri="/Pages/PageRoutesInbound.xaml" />
                <HyperlinkButton Content="Settings" Margin="4" TargetName="navFrame" NavigateUri="/Pages/PageSettings.xaml" />
                <HyperlinkButton Content="About" Margin="4" TargetName="navFrame" NavigateUri="/Views/About.xaml" />
                <HyperlinkButton Content="Test" Margin="4" TargetName="navFrame" NavigateUri="/Views/Test.xaml" />
            </StackPanel>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="4">
            <TextBlock Text="Current Url: " />
            <TextBlock Text="{Binding Source, ElementName=navFrame}" />
        </StackPanel>
        <ContentControl Content="Frame" Width="Auto" />
        <Grid 
            HorizontalAlignment="Left" Width="Auto " >
            <Rectangle Stroke="Black" StrokeThickness="2" />
            <navigation:Frame x:Name="navFrame" 
                              Source="/Views/About.xaml" 
                              Margin="2" Width="Auto"
                              VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" 
                              UriMapper="{StaticResource NavigationMapper}" 
                              />
        </Grid>
    </StackPanel>
    <!--

    -->
    <!--
    <Grid x:Name="LayoutRoot"
          VerticalAlignment="Top">
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <HyperlinkButton Grid.Row="0" x:Name="About" Content="About" Tag="About"
            Click="NavigateTo"></HyperlinkButton>

        <navigation:Frame x:Name="MainContent"
                              NavigationFailed="MainContent_NavigationFailed"
                              HorizontalContentAlignment="Stretch"
                              VerticalContentAlignment="Stretch"
                              Grid.Row="2"
                              Grid.Column="0"
                              Margin="30,0,30,0"
                              Source="Home"
                              UriMapper="{StaticResource NavigationMapper}">
        </navigation:Frame>
    </Grid>
    -->

</UserControl>
